<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean class="org.springframework.jmx.export.MBeanExporter">
		<property name="beans">
			<map>
				<entry key="bean:name=testBean1" value="testBean"/>
				<entry key="bean:name=testBean2" value="testBean2"/>
			</map>
		</property>
		<property name="server" ref="server"/>
		<property name="autodetect" value="true"/>
	</bean>

	<bean id="testBean" class="org.springframework.jmx.export.ExceptionOnInitBean" lazy-init="true">
		<property name="exceptOnInit" value="true"/>
		<property name="name" value="foo"/>
	</bean>

	<bean id="testBean2" class="org.springframework.jmx.export.ExceptionOnInitBean" lazy-init="true">
		<property name="exceptOnInit" value="false"/>
		<property name="name" value="foo"/>
	</bean>

	<bean id="testBean3" class="org.springframework.jmx.export.ExceptionOnInitBea" lazy-init="true"/>

	<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>

</beans>
